package com.zhang.springcloud.domain;

import lombok.*;

import java.math.BigDecimal;

@Data
public class Order {
    private Long id;
    private Long user_id;
    private Long product_id;
    private Integer count;
    private BigDecimal money;
    /**
     * 订单状态0- 创建， 1-完成
     */
    private Integer status;

    public Order() {
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", user_id=" + user_id +
                ", product_id=" + product_id +
                ", count=" + count +
                ", money=" + money +
                ", status=" + status +
                '}';
    }

    public Order(Long id, Long user_id, Long product_id, Integer count, BigDecimal money, Integer status) {
        this.id = id;
        this.user_id = user_id;
        this.product_id = product_id;
        this.count = count;
        this.money = money;
        this.status = status;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setUser_id(Long user_id) {
        this.user_id = user_id;
    }

    public void setProduct_id(Long product_id) {
        this.product_id = product_id;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getId() {
        return id;
    }

    public Long getUser_id() {
        return user_id;
    }

    public Long getProduct_id() {
        return product_id;
    }

    public Integer getCount() {
        return count;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public Integer getStatus() {
        return status;
    }
}
